package com.qfjy.wangyigui;

/**
 * @Author: WYG
 * @Date: 2022/9/13 $ {TIME}
 * @Version 1.0
 */
public class TelevisionCommand extends Command{

    private Television television;


    public TelevisionCommand(Television television) {
        this.television = television;
    }



    @Override
    public void open() {
        television.on();
    }

    @Override
    public void close() {
        television.off();
    }
}
